import React, { Component } from 'react'

export default class film extends Component {
  render() {
      let {name, detail} = this.props
    return (
      <div>
          <span onClick={()=>{
              this.props.event(detail)
          }}>{name}</span>
      </div>
    )
  }
}
